using System;
using System.Collections;
using System.Collections.Generic;
using Me.Prettyprint.Cassandra.Connection;
using Me.Prettyprint.Cassandra.Service;
using Me.Prettyprint.Hector.Api;
using Me.Prettyprint.Hector.Api.Beans;
using Me.Prettyprint.Hector.Api.Query;

namespace Me.Prettyprint.Cassandra.Model
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="K"></typeparam>
    /// <typeparam name="SN"></typeparam>
    /// <typeparam name="N"></typeparam>
    /// <typeparam name="V"></typeparam>
	public abstract class AbstractSuperColumnQuery<K, SN, N, V> : AbstractQuery<K, N, V, HSuperColumn<SN, N, V>>, SuperColumnQuery<K, SN, N, V>
	{
        protected AbstractSuperColumnQuery(Keyspace k, Serializer<K> keySerializer,
            Serializer<SN> sNameSerializer, Serializer<N> nameSerializer, Serializer<V> valueSerializer) : base(k, keySerializer, nameSerializer, valueSerializer)
        {
            SuperNameSerializer = sNameSerializer;
        }
        protected Serializer<SN> SuperNameSerializer
        {
            get;
            set;
        }
        public K Key
        {
            get;
            set;
        }
        public SN SuperName
        {
            get;
            set;
        }
        public SuperColumnQuery<K, SN, N, V> SetKey(K key)
        {
            Key = key;
            return this;
        }
        public new SuperColumnQuery<K, SN, N, V> SetColumnFamily(string cf)
        {
            return (SuperColumnQuery<K, SN, N, V>)base.SetColumnFamily(cf);
        }
        public SuperColumnQuery<K, SN, N, V> SetSuperName(SN superName)
        {
            SuperName = superName;
            return this;
        }
        public override string ToString()
        {
            return "SuperColumnQuery(" + Key + "," + SuperName + ")";
        }
	}
}